<template>
        <el-option v-for="item in dicItems" :label="item.value" :value="item.code" />
</template>

<script setup>
    import {ref,reactive,onMounted} from 'vue'
    import request from '@/utils/request.js'
    import { ElMessage } from 'element-plus'

    let props = defineProps(['typeCode'])
    let dicItems = reactive([])

    onMounted(function () {
        request.get(`/api/useDic/getDicItems/${props.typeCode}`).then(resp => {
            dicItems.push(...resp)
        })
    })
</script>

<style scoped>

</style>